Pod::Spec.new do |spec|

  spec.author             = { "陈狄夫" => "15816259234@163.com" }
  spec.name         = "ModuleCenter"
  spec.version      = "16"
  spec.summary      = "测试组件化"
  spec.description  = <<-DESC
  A short description of ViomiSkillCenter.
                   DESC
  spec.homepage     = "https://gitee.com/chocolate_df/ModuleCenter"
  spec.license      = { :type => "MIT", :file => "FILE_LICENSE" }
  spec.platform     = :ios, "10.0"
  spec.ios.deployment_target = "10.0"

  spec.source       = { :git => "https://gitee.com/chocolate_df/ModuleCenter.git", :tag => "#{spec.version}" }
  # spec.static_framework = true
  # spec.source_files = "ModuleCenter/*.{h,m}","ModuleCenter/*/*.{h,m}","ModuleCenter/*/*/*.{h,m}","ModuleCenter/*/*/*/*.{h,m}"
 
 # 添加到最终私有pod目标xcconfig文件的flag arm64指真机（iPhone6以后的机型）指令集  x86_64是指64位系统指令集 
  spec.pod_target_xcconfig = {'VALID_ARCHS' => 'arm64 x86_64'}
  
  spec.xcconfig = {'VALID_ARCHS' => 'arm64 x86_64'}

  spec.default_subspec = 'Framework'
   
  spec.subspec 'Framework' do |ss|
    ss.vendored_library = 'ModuleCenter_Products/libModuleCenter.a'
    ss.source_files = 'ModuleCenter/ModuleCenter.h'
    ss.resource = 'ModuleCenter/Resource/ModuleCenter.bundle'
  end

   # spec.subspec 'Source' do |ss|
      #ss.source_files = #"ModuleCenter/*.{h,m}","ModuleCenter/*/*.{h,m}","ModuleCenter/*/*/*##.{h,m}","ModuleCenter/*/*/*/*.{h,m}"
     # ss.resource = 'ModuleCenter/Resource/ModuleCenter.bundle'
   # end

    #spec.dependency "MJRefresh", "~> 3.5.0"

end
